package com.niiwoo.civet.mobile.vo.response.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by dell on 2017/12/7.
 * Description：civet-parent
 */
@Setter
@Getter
@ApiModel
public class UserPortraitResponseVo {

    @ApiModelProperty("用户头像地址")
    private String headImage;
    @ApiModelProperty("用户昵称")
    private String nickName;

    private BorrowUserPortraitData borrowUserPortraitData = new BorrowUserPortraitData();

    private NiiwooLoanRecordData niiwooLoanRecordData = new NiiwooLoanRecordData();


    /**
     * 天秤返回借款用户画像信息
     */
    @Setter
    @Getter
    @ApiModel
    public class BorrowUserPortraitData implements Serializable{
        private static final long serialVersionUID = 2670505731181038797L;

        @ApiModelProperty("用户姓名")
        private String realName;

        @ApiModelProperty("手机号码")
        private String mobilePhone;

        @ApiModelProperty("身份证")
        private String identityCard;

        /*@ApiModelProperty("你我分")
        private String score;

        @ApiModelProperty("你我分击败用户")
        private String beatOther;

        @ApiModelProperty("你我分等级")
        private String scoreLevel;

        @ApiModelProperty("你我分评估时间")
        private String assessTime;

        @ApiModelProperty("是否有车")
        private String isHasCar;

        @ApiModelProperty("是否有房")
        private String isHasHouse;*/

        @ApiModelProperty("手机号实名认证情况 1.手机号已实名认证 0.手机号未实名认证")
        private String validResultStatus;

        @ApiModelProperty("有无逾期记录")
        private String overdue;

        @ApiModelProperty("在网时长")
        private String phoneOnlineTime;

        @ApiModelProperty("近三个月借款申请次数")
        private String m3ApplyNum;

        @ApiModelProperty("近六个月借款申请次数")
        private String m6ApplyNum;

        @ApiModelProperty("历史有/无逾期记录")
        private String otherOverdue;

        @ApiModelProperty("社保连续缴纳时长")
        private String socialSecurityConsMonth;

        @ApiModelProperty("最高信用额度")
        private String maxCreditQuota;
    }


    /**
     * 你我金融贷款记录信息
     */
    @Setter
    @Getter
    @ApiModel
    public class NiiwooLoanRecordData implements Serializable{

        private static final long serialVersionUID = -7230729172512677074L;

        @ApiModelProperty("成功借款记录数")
        private int successProjectNum;

        @ApiModelProperty("已结清记录数")
        private int settlementNum;

        @ApiModelProperty("已结清总金额")
        private BigDecimal settlementAmount;

        @ApiModelProperty("正常还款中的记录数")
        private int inRepaymentNum;

        @ApiModelProperty("正常还款中的总金额")
        private BigDecimal inRepaymentAmount;

        @ApiModelProperty("逾期还款中的记录数")
        private int inOverdueNum;

        @ApiModelProperty("逾期还款中的总金额")
        private BigDecimal inOverdueAmount;
    }

}
